package com.limi.gridfsop.utils;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;


/**
 * @author Limi
 * @create 2020-06-25 15:50
 */
@Getter
@Setter
@Accessors(chain = true)
public class Result<T> {
    private boolean success;
    private Object data;

    public static Result success(Object obj){
        Result result = new Result();
        result.setSuccess(true).setData(obj);
        return result;
    }
}
